package com.lyf.boot.base.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lyf.boot.core.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author Luyufan
 * @date 2023/7/6 16:00
 */
@TableName("t_login_record")
@Data
@EqualsAndHashCode(callSuper = true)
public class LoginRecord extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = -78449153174156809L;

    /**
     * id
     */
    @TableId(value = "login_id", type = IdType.ASSIGN_ID)
    private Long loginId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * ip地址
     */
    private String ipAddr;

    /**
     * 地址
     */
    private String address;

    /**
     * 浏览器
     */
    private String browser;

    /**
     * 操作系统
     */
    private String os;

}
